import turtle

def draw(x, y, k):
    turtle.color('black')
    turtle.up()
    turtle.goto(x, y)
    turtle.down()
    turtle.forward(10 * k)
    turtle.right(90)
    turtle.forward(10 * k)
    turtle.left(90)
    turtle.forward(10 * k)
    turtle.right(90)
    turtle.forward(10 * k)
    turtle.right(90)
    turtle.forward(10 * k)
    turtle.left(90)
    turtle.forward(10 * k)
    turtle.right(90)
    turtle.forward(10 * k)
    turtle.right(90)
    turtle.forward(30 * k)
turtle.setup(500, 500)
x, y, k = int(input()), int(input()), int(input())
if k < 15 and x < 500 and y < 500:
    turtle.begin_fill()
    draw(x, y, k)
    turtle.end_fill()
    turtle.hideturtle()
else:
    print('Размер фигуры превышает максимальный размер поля')
